import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login/login'
import Register from '@/components/login/register'
import BaseInfo from '@/components/login/baseInfo'
import Home from '@/components/home/home'

Vue.use(Router)

export default new Router({
  routes: [
    {
			path:'/',
			redirect:'/login' // 默认路径
		},
    {
      path: '/login',
      component: Login
    },
    {
      path: '/register',
      component: Register
    },
    {
      path: '/baseInfo',
      component: BaseInfo
    },
    {
      path: '/home',
      component: Home
    }
  ]
})
